<?php

namespace app\common\model;

use think\Model;

class JurisdictionGroup extends Model
{
    /**
     * 根据条件获取角色列表
     * @param array $where
     * @return false|static[]
     */
    public function getRoleList($where = []) {
        $where['delete'] = 0;
        return $this->all($where);
    }

    /**
     * 获取角色信息
     * @param array $where
     * @return null|static
     */
    public function getRole($where = []) {
        $where['delete'] = 0;
        return $this->get($where);
    }
}
